package com.gy.assistant.ui.chat.base.adapter.holder;

import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.gy.assistant.R;

public class ChatCenterViewHolder extends RecyclerView.ViewHolder {
    private TextView textView;

    public ChatCenterViewHolder(@NonNull ViewGroup viewGroup) {
        super(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_chat_center, viewGroup, false));
        textView = itemView.findViewById(R.id.center_text);
    }

    public void setText (String text){
        textView.setText(text);
    }
}
